package cn.rengy.web.framework.wxmp.token;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
/**
 * AccessToken
 * @author rengy
 *
 */
@ConditionalOnProperty(name = "spring.cache.type", havingValue = "redis", matchIfMissing = false)
@Service(value="tokenService")
public class AccessTokenService extends AbstractTokenService{

	@Override
	public String getLockKey(String appid) {
		return TokenKeyService.getAccessTokenLockKey(appid);
	}

	@Override
	public String getAccessKey(String appid) {
		return TokenKeyService.getAccessTokenKey(appid);
	}

	

}
